package com.numberone.web.controller.bottomurlfather;

import java.util.List;

import com.numberone.system.util.JsonResult;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.numberone.common.annotation.Log;
import com.numberone.common.enums.BusinessType;
import com.numberone.system.domain.BottomUrlFather;
import com.numberone.system.service.IBottomUrlFatherService;
import com.numberone.framework.web.base.BaseController;
import com.numberone.common.page.TableDataInfo;
import com.numberone.common.base.AjaxResult;
import com.numberone.common.utils.poi.ExcelUtil;

/**
 * 底部导航栏 父级 信息操作处理
 * 
 * @author 于沛麟
 * @date 2020-09-25
 */
@RestController
@RequestMapping("/api/bottomUrlFather")
public class BottomUrlFatherApiController extends BaseController
{

	
	@Autowired
	private IBottomUrlFatherService bottomUrlFatherService;

	/**
	 * 获取底部导航栏父级数据
	 * @return
	 */
	@GetMapping("/get")
	public Object getUrlFather(){

		List<BottomUrlFather> bottomUrlFathers =bottomUrlFatherService.query();
		if (bottomUrlFathers.isEmpty()){

			return JsonResult.nodata();
		}
		return JsonResult.success(bottomUrlFathers);
	}


	
}
